<?php
	include_once("../persistent/BaseObject.php");
	
	class Label extends BaseObject
	{
		public $content;
		
		public function __construct($d)
		{
			$this->tableName = "Labels";
			parent::__construct($d);	
		}		
		
		public function findValueByContent($content)
		{
			$con = $this->openDB();
			
			// 找出Username的条目
			$sql = "SELECT * FROM $this->tableName
			WHERE Content = '$content'";
			
			return mysql_fetch_array($this->startSQL($sql,$con));
		}
	}

?>
